package org.xnsg.app.model;

import com.eova.common.base.BaseModel;


public class Announcements extends BaseModel<Announcements> {

	private static final long serialVersionUID = 1064291771401662738L;

	public static final Announcements dao = new Announcements();

	public Announcements findByAid(String aid){
		String sql = "select aid, atitle, to_char(atime, 'yyyy-mm-dd') atime, acontext from Announcements where aid = ?";
		return this.findFirst(sql, aid);
	}

}
